How do you refer to the user using the application vs. the user being edited? [closed]
Posted
by
Roman Royter
on Programmers
See other posts from Programmers
or by Roman Royter
Published on 2012-12-17T20:57:03Z
Indexed on
2012/12/17
23:13 UTC
Read the original article
Hit count: 194
naming
Suppose you are developing an administration page where the administrator can edit other users. In your code you want to distinguish between the user sitting in front of the screen, and the user being edited.
What do you call the two? User, CurrentUser, EditedUser, CurrentEditUser, etc?
Note that the admin user isn't necessarily real admin, they can be just an ordinary user given rights to edit other users.
© Programmers or respective owner